package com.wms.mapper;

import com.wms.entity.Material;
import com.wms.entity.Stock;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface MaterialMapper {
    List<Material> getMaterial(Material material);

    Integer queryMaterialByCode(String code);

    int addMaterial(Material material);

    String queryMaxMaterialCode(String categoryCode);

    int updateMaterial(Material material);

    int deleteMaterial(int id);

    Stock queryStock(int mid);

    int insertStock(Stock stock);
    int updateStock(Stock stock);
    int updatesetStatus(int id);

}
